<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>Bookmark It!</title>
    <link rel="stylesheet" type="text/css" href="extjs/resources/ext-theme-neptune/ext-theme-neptune-all.css">
    <link rel="stylesheet" href="resources/css/app.css" />
    <script>
    var CLIENT_ID = '513211258110.apps.googleusercontent.com';
    var SCOPES = 'https://www.googleapis.com/auth/drive';

   
    function handleClientLoad() {
      gapi.auth.authorize(
          {'client_id': CLIENT_ID, 'scope': SCOPES, 'immediate': true},
          handleAuthResult);
    }

    function handleAuthResult(authResult) {
      if (authResult && !authResult.error) {
      } else {
      		window.location = '/quickstart.html';
      }
    }
    </script>
    <script type="text/javascript" src="https://apis.google.com/js/client.js?onload=handleClientLoad"></script>
	<script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script>
 	<script type="text/javascript" src="extjs/ext-all.js"></script>
    <script type="text/javascript" src="app.js"></script>
</head>
<body>
</body>
</html>
